﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.WebPages.OAuth;
using SocialASP.Models;

namespace SocialASP
{
    public static class AuthConfig
    {
        public static void RegisterAuth()
        {
            Dictionary<string, object> dict = new Dictionary<string, object>();
            dict.Add("logo", "microsoft.jpg");
            OAuthWebSecurity.RegisterClient(new SocialASP.Models.MyMicrosoftClient("00000000400D5C81", "f92EjIWAjooufB17BQIIFyBz2oJoE7Tn"), "Microsoft", dict);

            dict = new Dictionary<string, object>();
            dict.Add("logo", "facebook.png");
            OAuthWebSecurity.RegisterClient(new SocialASP.Models.MyFacebookClient("437259096325840", "fc92425545c6d906b4e2bcb18e6a0656"), "Facebook", dict);

            dict = new Dictionary<string, object>();
            dict.Add("logo", "google.png");
            OAuthWebSecurity.RegisterGoogleClient("Google", dict);

            dict = new Dictionary<string, object>();
            dict.Add("logo", "yahoo.png");
            OAuthWebSecurity.RegisterYahooClient("Yahoo", dict);
        }
    }
}
